ID Property (Message Object) 

The ID property returns the unique identifier of this message object. Read-only.

Syntax

objMessage.ID

Data Type

String

Remarks

MAPI systems assign a permanent, unique identifier string when an object is created. These identifiers do not change from one MAPI session to another.

The ID property corresponds to the MAPI property PR_ENTRYID, converted to a string of hexadecimal characters.

Example

'     Save id of last message accessed; use at startup

'     from the sample function Message_ID

    strMessageID = objOneMsg.Id

 

' ... on shutdown, save the ID to storage

' ... on startup, get the ID from storage and restore

'     from the sample function Session_GetMessage

    Set objOneMsg = objSession.GetMessage(strMessageID)

 

See Also

GetMessage Method (Session Object)OG58GS